import {
	RUOV_BASE_URL,
	// #ifndef MP-WEIXIN
	APPID,
	// #endif
} from "./config"


// #ifndef MP-WEIXIN
const appid = APPID
// #endif

// #ifdef MP-WEIXIN
const appid = uni.getAccountInfoSync().miniProgram.appId
// #endif

const Api = {}
const Code = {
	Success: 200,
	Error: 500
}
Api.Code = Code
Api.baseUrl = RUOV_BASE_URL
Api.miniappModPath = Api.baseUrl + "/miniapp/" + appid
Api.offiaccountModPath = Api.baseUrl + "/offiaccount/" + appid
Api.miniapp = {
	login: Api.miniappModPath + "/login"
}
Api.offiaccount = {
	login: Api.offiaccountModPath + "/login",
	checkLogin: Api.offiaccountModPath + "/checkLogin"
}


export default Api
